/**
 * 
 */
package com.asofrucol.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.asofrucol.dao.RuatDao;
import com.asofrucol.dto.RuatDTO;
import com.asofrucol.model.Ruat;
import com.asofrucol.service.UserOwnerService;

/**
 * @author Iván
 * 
 */
@Service ("UserOwnerService")
public class UserOwnerServiceImpl implements UserOwnerService, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Autowired
	private RuatDao ruatDao;
	@Override
	public RuatDTO saveRuat(RuatDTO ruatDTO) {

		System.out.println("ejecutando saveruatDaoDTO");
		Ruat ruat = new Ruat();
		ruat.setFirstName(ruatDTO.getFirstName());
		ruat.setSecondName(ruatDTO.getSecondName());
		ruatDao.save(ruat);
		return null;
	}

	public List<RuatDTO> listUserOwners() {
		// TODO Auto-generated method stub
		return null;
	}

}
